#include "utils.h"

void common_gauss() {
    for (int k = 0; k < n; k++) {
        float ele = A[k][k];
        for (int j = k + 1; j < n; j++) A[k][j] /= ele;
        A[k][k] = 1.0;
        for (int i = k + 1; i < n; i++) {
            for (int j = k + 1; j < n; j++) A[i][j] -= A[i][k] * A[k][j];
            A[i][k] = 0;
        }
    }
}
